package org.example.utils;

import java.util.List;
import java.util.Map;

/**
 * @author 尹承
 */
public class HttpResult<T> {
    private int statusCode;
    private Map<String, List<String>> responseHeader;
    private T result;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public Map<String, List<String>> getResponesHeader() {
        return responseHeader;
    }

    public void setResponseHeader(Map<String, List<String>> responesHeader) {
        this.responseHeader = responesHeader;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public HttpResult() {
    }

    public HttpResult(int statusCode, Map<String, List<String>> responesHeader, T result) {
        this.statusCode = statusCode;
        this.responseHeader = responesHeader;
        this.result = result;
    }
}